<%@ page import="com.cvv.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: CVV
  Date: 2018/6/26
  Time: 9:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<% User user=new User();
    user.setUserid(1);
    user.setUsername("cvv");
    session.setAttribute("user",user);%>
<html>
<head>
    <title>首页 - 物流管理系统</title>
    <script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <style media="all" type="text/css">@import "style/all.css";</style>
</head>
<body>
<div id="main">
    <div id="header">
        <a href="index.jsp" class="logo"><img src="style/img/logo.gif" width="200" height="29" alt=""/></a>
        <ul id="top-navigation">
            <li class="active"><span><span>首页</span></span></li>
            <li><span><span><a href="cus_server/index.jsp">客户服务中心</a></span></span></li>
            <li><span><span><a href="sch_hub/index.jsp">调度中心</a></span></span></li>
            <%--<li><span><span><a href="sub_dept/index.jsp">分站管理</a></span></span></li>--%>
            <li><span><span><a href="depot_manage/index.jsp">库房管理</a></span></span></li>
            <li><span><span><a href="dist_hub/index.jsp">配送中心</a></span></span></li>
            <li><span><span><a href="finance_manage/index.jsp">财务管理</a></span></span></li>
        </ul>
        <div id="operator" class="active">操作员&nbsp;<span>
            <c:choose>
            <c:when test="${!empty sessionScope.user}">
                ${sessionScope.user.username}
            </c:when>
           <c:otherwise>
               <script>alert("您还未登录!");
                window.location.href="${ctx}/login.jsp"; 
               </script>
           </c:otherwise>
            </c:choose>
        </span>&nbsp;<a href="#">退出</a></div>
    </div>
    <div id="middle" style="text-align: center;">
        <img src="style/img/home.gif" border="0" usemap="#Map" style="margin: 0;padding: 0;border: 0;"/>
        <map name="Map" id="Map">
            <area title="配送中心" shape="circle" coords="380,274,28" href="dist_hub/index.jsp"/>
            <area title="客户服务中心" shape="rect" coords="238,136,290,188" href="cus_server/index.jsp"/>
            <area title="调度中心" shape="rect" coords="198,298,248,356" href="sch_hub/index.jsp"/>
            <area title="分站管理" shape="poly" coords="377,398,354,419,354,455,400,455,401,419"
                  href="sub_dept/index.jsp"/>
            <area title="库房管理" shape="poly" coords="494,136,466,146,466,178,493,191,520,180,521,147"
                  href="depot_manage/index.jsp"/>
            <area title="财务管理" shape="poly" coords="530,298,567,297,564,346,514,363,504,327,529,321"
                  href="finance_manage/index.jsp"/>
        </map>
    </div>
    <div id="footer"></div>
</div>
<div id="copyright">Copyright &copy;2009 长沙牛耳第二小组</div>
</body>
</html>